<?php if (!defined('THINK_PATH')) exit();?>	<script type="text/javascript">
        var UEDITOR_HOME_URL = "__PUBLIC__/ueditor/";
    </script>
     <script type="text/javascript" src="__ROOT__/Public/ueditor/editor_config.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/ueditor/editor_all.js"></script>
    <link rel="stylesheet" type="text/css" href="/public/ueditor/themes/default/css/ueditor.css" />
<form action="__URL__/edit_do" method="post">
	<input type="hidden" name="id" value="<?php echo ($article["id"]); ?>" />
   <p>
    <label for="title">文章标题</label>
    <input type="text" name="title" id="title" value="<?php echo ($article["title"]); ?>">
  </p>
  <p>
    <label for="type">文章类型</label>
    <select name="type" id="type">
      <option value="最新动态" <?php if($article["type"] == '最新动态'): ?>selected="selected"<?php endif; ?>>最新动态</option>
      <option value="装修教程"  <?php if($article["type"] == '装修教程'): ?>selected="selected"<?php endif; ?>>装修教程</option>
    </select>
  </p>
  <p>
    <label for="key">关键词</label>
    <input type="text" name="key" id="key" value="<?php echo ($article["key"]); ?>" />
  用逗号隔开</p>
  <p>
    <label for="desc">文章简介</label>
    <textarea name="desc" id="desc" cols="30" rows="3"><?php echo ($article["desc"]); ?></textarea>
  可不输入，自动提取文中内容</p>
  <p>
    <label for="content">文章内容</label>
    <textarea id="content" name="content"><?php echo ($article["content"]); ?></textarea>
    <script type="text/javascript">
		var editor = new baidu.editor.ui.Editor();
		editor.render('content');
	</script>
  </p>
  <input type="submit">
</form>